#ifndef __BSP_H
#define __BSP_H
#include "main.h"
#include "cmsis_os.h"
#include <stdio.h>
#include <stdint.h>

enum
{
    IN1 = 0x01,              
    IN2,                     
    IN3,                     
    IN4,                      
    IN5,                     
    IN6,                     
    IN7,                     
    IN8,                     
    IN9,                     
    IN10,                    
    IN11,                   
    IN12,                   
    IN13,                   
    IN14,                   
    IN15,                   
    IN16,                     
    INMAX                
};

enum
{
    OUT1 = 0x01,              
    OUT2,                     
    OUT3,                     
    OUT4,                      
    OUT5,                     
    OUT6,                     
    OUT7,                     
    OUT8,                     
    OUT9,                     
    OUT10,                    
    OUT11,                   
    OUT12,                   
    OUT13,                   
    OUT14,                   
    OUT15,                   
    OUT16,                   
    OUTMAX                 
};

extern uint8_t bsp_get_in(uint8_t idx);
extern uint8_t bsp_get_out(uint8_t idx);
extern void bsp_set_out(uint8_t idx,GPIO_PinState status);
#endif
